package com.liu;

import com.liu.component.Component;
import com.liu.component.impl.ComponentImpl;
import com.liu.decorator.impl.DecoratorImpl;

public class DecoratorTest {
    public static void main(String[] args) {
        Component p = new ComponentImpl();
        p.operation();
        System.out.println("---------------------------------");
        Component d = new DecoratorImpl(p);
        d.operation();
    }
}
